
package com.jiuzhe.commercial.ui.components;

import org.xmlpull.v1.XmlPullParser;


public class ReportBaseObject {

	// ~ 常量区块
	// =========================================================================
    public enum ALIGN
    {/// 停靠方向
        TPCIA_UNKNOWN,	//	无效
        TPCIA_TOP,		//	无效
        TPCIA_BOTTOM,	//	无效
        TPCIA_LEFT,		//	左对齐
        TPCIA_RIGHT,	//	右对齐
        TPCIA_CENTER,	//	居中
        TPCIA_CLIENT	//	无效
    };

	// ~ 成员变量区块
	// =========================================================================
	protected ReportBaseObject ParentObject = null;
	protected String     			strName;
	protected String				strClass;
	
	protected boolean    bVisible = true;
	protected ALIGN   nControlAlign = ALIGN.TPCIA_UNKNOWN;
	protected float     nLeft = -1;
	protected float     nTop = -1;
	protected float     nWidth = -1;
	protected float     nHeight = -1;
	protected String  filterClass   = "";//每个对象默认的过滤类型

	// ~ 构造函数区块
	// =========================================================================
	public ReportBaseObject() {}

	// ~ 方法区块
	// =========================================================================

	public boolean LoadFromXml(XmlPullParser parser)
	{
	    return true;
	}
	
	public ReportBaseObject getParentObject() {
		return ParentObject;
	}

	public void setParentObject(ReportBaseObject ParentObject) {
		this.ParentObject = ParentObject;
	}

	public String getStrName() {
		return strName;
	}

	public void setStrName(String strName) {
		this.strName = strName;
	}

	public String getStrClass() {
		return strClass;
	}

	public void setStrClass(String strClass) {
		this.strClass = strClass;
	}

	public boolean isbVisible() {
		return bVisible;
	}

	public void setbVisible(boolean bVisible) {
		this.bVisible = bVisible;
	}

	public ALIGN getnControlAlign() {
		return nControlAlign;
	}

	public void setnControlAlign(ALIGN nControlAlign) {
		this.nControlAlign = nControlAlign;
	}

	public float getnLeft() {
		return nLeft;
	}

	public void setnLeft(int nLeft) {
		this.nLeft = nLeft;
	}

	public float getnTop() {
		return nTop;
	}

	public void setnTop(int nTop) {
		this.nTop = nTop;
	}

	public float getnWidth() {
		return nWidth;
	}

	public void setnWidth(int nWidth) {
		this.nWidth = nWidth;
	}

	public float getnHeight() {
		return nHeight;
	}

	public void setnHeight(int nHeight) {
		this.nHeight = nHeight;
	}
	
	public String getFilterClass() {
		return filterClass;
	}

	public void setFilterClass(String filterClass) {
		this.filterClass = filterClass;
	}


	// ~ 静态方法区块
	// =========================================================================

	// ~ 内部接口（类）区块
	// =========================================================================
}
